//
//  BookAdditions.h
//  Doc Ebook
//
//  Created by Hai Nguyen on 9/6/12.
//  Copyright (c) 2012 Hai Nguyen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Book.h"

//@property (nonatomic, retain) NSNumber * id;
//@property (nonatomic, retain) NSString * title;
//@property (nonatomic, retain) NSString * subtitle;
//@property (nonatomic, retain) NSString * excerpt;
//@property (nonatomic, retain) NSString * author;
//@property (nonatomic, retain) NSNumber * pageNo;
//@property (nonatomic, retain) NSNumber * favorite;
//@property (nonatomic, retain) Book *category;

@interface Book (Additions)

+ (BOOL)insertBook:(int)bookId title:(NSString*)title subtitle:(NSString*)subTitle excerpt:(NSString*)excerpt author:(NSString*)author pages:(int)pages favorite:(BOOL)favorite coverLink:(NSString*)coverLink;
+ (NSArray*)getAllBooks;
+ (NSArray*)getBooksInCategory:(int)catId;
+ (Book*)bookWithId:(int)bookId;
+ (NSArray*)searchByTitle:(NSString*)bookName;
+ (BOOL)deleteBook:(int)bookId;

@end
